﻿using System.Threading.Tasks;
using SmartCity.Shared;
using Volo.Abp.Application.Services;

namespace ParkManagement
{
    /// <summary>
    /// 里程应用服务接口
    /// </summary>
    public interface IConsumptionAppService : IApplicationService
    {
        /// <summary>
        /// 列表
        /// </summary>
        /// <param name="plateNo"></param>
        /// <param name="travelDate"></param>
        Task<ListResponse<ConsumptionDto>> ListAsync(string plateNo, string travelDate = null);

        /// <summary>
        /// 创建
        /// </summary>
        /// <param name="input"></param>
        Task<ActionResponse> CreateAsync(CreateConsumptionDto input);

        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="input"></param>
        Task<ActionResponse> UpdateAsync(UpdateConsumptionDto input);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        Task<ActionResponse> DeleteAsync(int id);
    }
}